<?php

namespace App\Models;

use App\Models\airline\base\BanModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model as BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class FlightBansModel extends BaseModel
{
    use HasFactory, SoftDeletes;

    protected $table = 't_flight_bans';

    protected $primaryKey = 'id';

    public $timestamps = false;

    const CREATED_AT = null;
    
    const UPDATED_AT = null;

    protected $guarded = [];

    protected $hidden = [
        'deleted_at',
    ];

    //排货
    public function flight(): BelongsTo {
        return $this->belongsTo(FlightModel::class, 'flight_id');
    }


}
